<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<{$Charset}>">
<title>商务室 - <{$sitetitle}></title>
<link href="<{$CSS_PATH}>css/style.css" rel="stylesheet" type="text/css">
<link href="<{$INC_PATH}>css/room.css" rel="stylesheet" type="text/css">
<script language="javascript" src="<{$JS_PATH}>js/general.js"></script>
<script src="<{$JS_PATH}>js/prototype.js"></script>
<script src="<{$JS_PATH}>js/mixselect.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script language="javascript"> 
function IsURL(urlString)
{
	regExp = /(?:(?:http[s]?|ftp):\/\/)?[^\/\.]+?\.[^\.\\\/]+?\.\w{2,}$/i;
	if (urlString.match(regExp))return true;
	else return false;
}

function checkinput(){
	if($F('memberlastname')==""){
		alert("请输入您的姓名");
		$('memberlastname').focus();
		return false;
	}
	if($F('membersite_url')!=""){
		if(!IsURL($F('membersite_url'))){
			alert("您输入的网址有误");
			$('membersite_url').focus();
			return false;
		}
	}
	return true;
}
</script>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td height="83"><{include file="default/element.top.html"}></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr align="center" valign="top">
    <td width="180" background="<{$tpl_img_path}>office/left_bg.gif"><{include file="room/menu.html"}></td>
    <td align="center"><table width="98%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img SRC="<{$tpl_img_path}>office/banr_pic.gif" WIDTH=570 HEIGHT=101 ALT=""></td>
        </tr>
      </table>
        <table width="95%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="45" background="<{$tpl_img_path}>office/title_bg.gif"><table height="30" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td>&nbsp;</td>
                  <td class="font14b_org"><img src="<{$tpl_img_path}>office/icon_newd.gif" width="15" height="16"> 个人信息</td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td height="5" valign="top" class="bggray2"></td>
          </tr>
      </table>
	  <form name="companyeditfrm" action="./personal.php" method="post">
        <table width="95%"  border="0" cellspacing="0" cellpadding="0">          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="35"><span class="gray">&nbsp;（提示：带<font color="#FF6600"> * </font>号的为必填项）</span></td>
                </tr>
                <tr>
                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="21%" class="bgblue"><img src="<{$tpl_img_path}>office/corner_01.gif" width="12" height="12"></td>
                        <td align="right" valign="top" class="tdright"><img src="<{$tpl_img_path}>office/corner_02.gif" width="12" height="12"></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td>
				  <table width="100%" border="0" cellspacing="0" cellpadding="5">
                      <tr>
                        <td class="tdleft">姓名：</td>
                        <td class="tdright"><input name="member[lastname]" type="text" id="memberlastname" value="<{$p.MemberLastname}>"><font color="#FF6600">*</font></td>
                      </tr>
                      
                      <tr>
                        <td class="tdleft">性别</td>
                        <td class="tdright"><{html_radios name="member[gender]" options=$Genders checked=$p.MemberGender|default:"1" separator=" "}></td>
                      </tr>
                      <tr>
                        <td class="tdleft">省/市：</td>
                        <td class="tdright"><select name="countryid" id="countryid" USEDATA="dataSrc2" SUBCLASS="1">
                        </select><select name="provinceid" id="provinceid" USEDATA="dataSrc2" SUBCLASS="2">
                        </select><select name="cityid" id="cityid" USEDATA="dataSrc2" SUBCLASS="3">
                        </select></td>
                      </tr>
                      <tr>
                        <td class="tdleft">当前：</td>
                        <td class="tdright"><{$p.MemberProvince|default:"无"}><{$p.MemberCity}></td>
                      </tr>
                      
                      <tr>
                        <td class="tdleft">地址:</td>
                        <td class="tdright"><input name="member[address]" type="text" id="memberaddress" value="<{$p.MemberAddress}>"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">邮政编码:</td>
                        <td class="tdright"><input name="member[zipcode]" type="text" id="memberzipcode" value="<{$p.MemberZipcode}>"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">QQ号码:</td>
                        <td class="tdright"><input name="member[qq]" type="text" id="memberqq" value="<{$p.MemberQq}>"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">ICQ号码:</td>
                        <td class="tdright"><input name="member[icq]" type="text" id="membericq" value="<{$p.MemberIcq}>"></td>
                      </tr>
                      <tr>
                        <td class="tdleft"><p>Msn Messenger:</p>                        </td>
                        <td class="tdright"><input name="member[msn]" type="text" id="membermsn" value="<{$p.MemberMsn}>"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">Yahoo Messenger: </td>
                        <td class="tdright"><input name="member[yahoo]" type="text" id="memberyahoo" value="<{$p.MemberYahoo}>"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">联系电话</td>
                        <td class="tdright"><input name="member[tel]" type="text" id="membertel" value="<{$p.MemberTel}>"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">传真号码</td>
                        <td class="tdright"><input name="member[fax]" type="text" id="memberfax" value="<{$p.MemberFax}>"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">手机号码</td>
                        <td class="tdright"><input name="member[mobile]" type="text" id="membermobile" value="<{$p.MemberMobile}>"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">个人主页</td>
                        <td class="tdright"><input name="member[site_url]" type="text" id="membersite_url" value="<{$p.MemberSiteUrl}>"></td>
                      </tr>
                      <tr>
                        <td class="tdleft">联系Email：</td>
                        <td class="tdright"><input name="member[email]" type="text" id="memberemail" value="<{$p.MemberEmail}>" size="32" disabled>(<a name="mod" href="#mod" onclick="javascript:$('memberemail').disabled=false;">修改</a>)</td>
                      </tr>
                       <tr>
                        <td class="tdleft">登录后跳转页面：</td>
                        <td class="tdright"><select name="member[office_redirect]" id="MemberOfficeRedirect">
							<{foreach from=$OfficeRedirects name=office_redirect key=key item=item}>
							<option value="<{$key}>" <{if $key==$p.MemberOfficeRedirect}>selected<{/if}>><{$item}></option>
							<{/foreach}>
                        </select></td>
                      </tr>
                 </table></td>
                </tr>
                <tr>
                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="21%" class="tdleft"><img src="<{$tpl_img_path}>office/corner_03.gif" width="12" height="12"></td>
                        <td align="right" valign="top" class="tdright"><img src="<{$tpl_img_path}>office/corner_04.gif" width="12" height="12"></td>
                      </tr>
                  </table></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td height="40" align="center"><br>
                <input name="save" type="submit" id="save" onClick="return checkinput();" value="保存资料">
            </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
    </table>
	</form>
	</td>
  </tr>
</table>
<{include file="room/foot.html"}>
</body>
</center>
</html>
<script language="javascript">
var linkage2 = new Linkage("dataSrc2", "<{$JS_PATH}>media/xml/area.xml");
linkage2.BLANK_SELECT = "请选择";
linkage2.init();
</script>